//
//  GeoMetry.h
//  Trackit
//
//  Created by yaodaobin on 2017/4/18.
//  Copyright © 2017年 yaodaobin. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    GeometryTypePositions,
    GeometryTypePoint,
    GeometryTypeMultiPoint,
    GeometryTypeLineString,
    GeometryTypeMultiLineString,
    GeometryTypePolygon,
    GeometryTypeMultiPolygon,
    GeometryTypeGeometryCollection,
}GeometryType;

@interface GeoMetry : NSObject

@property (nonatomic, assign) GeometryType type;
@property (nonatomic, strong) NSMutableArray *coordinates;

- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
+ (NSString *)translateToGeometryTypeString:(GeometryType)type;
+ (GeometryType)translateToGeometryType:(NSString *)typeString;

@end
